﻿<%@ Page Language="C#" MasterPageFile="~/A_LetsDeal/MasterPage.master" AutoEventWireup="true" CodeFile="dathang.aspx.cs" Inherits="A_LetsDeal_dathang"  %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
 <div style="float:right;">
            <asp:Button CssClass="buttonsearch" Text="Tìm kiếm" runat="server" 
                  ID="bt_timkiem" onclick="bt_timkiem_Click"/>
                </div>            
            <div style="float:right;">
            <asp:TextBox ID="txt_timkiem"  CssClass="textsearch" runat="server"/>
            </div>
</asp:Content>   
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<% if (Session["username"] == null)
   {%>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<style type="text/css" >
body
{
    margin:0px 0px 0px 0px;	
}
.discount1
{
	position:absolute;
	width: 124px;
	height: 124px;
	color: white;
	z-index: 2;
	line-height: 28px;
	text-align: center;
	padding-top:25px;
	padding-left: 7px;
	font-weight:bold;
	font-size:large;
}
div#lightbox{
	width:800px;
	height:553px;
	border:3px solid #fff;
	position: fixed;
	z-index: 11111222;
	background-color: #000;
}
div#lightbox p,
div#lightbox img{
	position: absolute;
}
div#lightbox p{
	width:98.8%;
	background-color:rgba(0,0,0,0.85);
	padding: 5px;
	bottom:0;
}
div#gray{
	width:100%;
	height:100%;
	position: fixed;
	z-index: 1111111;
	background-color:rgba(0,0,0,0.8);
	cursor: pointer;
	text-align:center;
}
div#gray a
{
	position: absolute;
	width:150px;
	color: Blue;
	font-weight:bold;
	background-color: #fff;
	padding: 5px;
	text-decoration:none;
}   
</style>   
<script type="text/javascript">
		$(document).ready(function() {

			var wid = $(window).width();
			var hei = $(window).height();

			// BEGIN LIGHTBOX
			$("body").prepend('<div id="lightbox"><div style="margin:100px 100px 100px 100px;position:absolute;"><font size="+3" color="White">Bạn chưa đăng nhập không thể đặt hàng</font></div><div style="margin-bottom:50px;position:absolute"><font size="+1" color="White">Let&apos;s Deal - Mua hàng với giá rẻ nhất</font></div></div>')
			$("body").prepend('<div id="gray"><a href="Default.aspx" title="">Close</a></div>');
			var lb = $("#lightbox");
			var gray = $("#gray a");

			lb.append("<img>");
			lb.css({"marginLeft":wid/2-400,"marginTop":hei/2-553/2});
			
			gray.click(function(){
                gray.hide();
                lb.hide();
		    });
		});
</script>
<% } %>
<div class="tieude" style="margin-top:-32px;background-color:white;">
            <div class="tieude-text" style="color:bLUE">ĐẶT HÀNG</div>
</div>
<div class="noidung">   
<table width="100%" cellspacing="0">
    <tr>
        <td colspan="2" style="border:solid 1px silver;" valign="middle"> 
        <div class="nentieude" style="text-align:center;"><font size="+1">PHIẾU ĐẶT HÀNG</font></div>
        </td>
    </tr>
    <tr>
        <td colspan="2" style="border:solid 1px silver;">
        <div class="nentieude"><asp:Literal ID="lit_tieude1" runat="server"></asp:Literal></div>
        </td>
    </tr>
    <tr>
        <td style="width:25%;padding-left:15px;border:solid 1px silver;" >
            Họ tên khách hàng:
        </td>
        <td style="border:solid 1px silver;">
            <asp:TextBox ID="txt_hoten" runat="server" Width="200px" ReadOnly="true"></asp:TextBox>
            <asp:HiddenField ID="hd_stt" runat="server" />
        </td>
    </tr>
    <tr>
        <td style="padding-left:15px;border:solid 1px silver;">
            Địa chỉ nhận voucher:
        </td>
        <td style="border:solid 1px silver;">
            <asp:TextBox ID="txt_dc" runat="server" TextMode="MultiLine" Width="250px" Rows="5" Columns="20"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td style="padding-left:15px;border:solid 1px silver;">
            Điện thoại liên lạc:
        </td>
        <td style="border:solid 1px silver;">
            <asp:TextBox ID="txt_dienthoai" runat="server" Width="200px" ReadOnly="true"></asp:TextBox>
        </td>
    </tr>
     <tr>
        <td colspan="2" style="border:solid 1px silver;">
        <div class="nentieude"><asp:Literal ID="lit_tieude2" runat="server"></asp:Literal></div>
        </td>
    </tr>
    <tr>
        <td style="padding-left:15px;border:solid 1px silver;">
            Giỏ hàng
        </td>
        <td style="border:solid 1px silver;">
            <asp:HyperLink ID="hyp_giohang" runat="server" NavigateUrl="~/A_LetsDeal/giohang.aspx" Text="Xem lại giỏ hàng"></asp:HyperLink>
        </td>
    </tr>
    <tr>
        <td style="padding-left:15px;border:solid 1px silver;">
            Tổng số sản phẩm:
        </td>
        <td style="border:solid 1px silver;">
            <asp:Literal ID="lit_sosp" runat="server"></asp:Literal>
        </td>
    </tr>
     <tr>
        <td style="padding-left:15px;border:solid 1px silver;">
            Tổng số Voucher:
        </td>
        <td style="border:solid 1px silver;">
            <asp:Literal ID="lit_sovc" runat="server"></asp:Literal>
        </td>
    </tr>
    <tr>
        <td style="padding-left:15px;border:solid 1px silver;">
            Tổng trị giá đơn hàng:
        </td>
        <td style="border:solid 1px silver;">
            <asp:Literal ID="lit_thanhtien" runat="server"></asp:Literal>
        </td>
    </tr>
     <tr>
        <td style="padding-left:15px;border:solid 1px silver;">
            Hình Thức Thanh Toán:
        </td>
        <td style="border:solid 1px silver;">
            <asp:DropDownList ID="ddl_httt" runat="server"></asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
        </td>
        <td style="border:solid 1px silver;">
            <asp:Button ID="lbt_dathang" runat="server" Text="Đặt Hàng" 
                CssClass="bt_dathang" Width="100px" Height="20px" 
                onclick="lbt_dathang_Click" />
                <asp:HyperLink ID="hyp_back" runat="server" Visible="false"></asp:HyperLink>
        </td>
    </tr>
</table>
</div>
</asp:Content>

